put return & "You clicked the ΓÇ£CancelΓÇ¥ button." into cd fld "theResult"
else
put the result into temp
put "Menu item selected was:" && item 1 of temp & return into cd fld "theResult"
if item 2 of temp is empty then
put "String 1 was: empty" & return after cd fld "theResult"
else put "String 1 was:" && item 2 of temp & return after cd fld "theResult"
if item 3 of temp is empty then
put "String 2 was: empty" after cd fld "theResult"
else put "String 2 was:" && item 3 of temp after cd fld "theResult"
end if
end mouseUp
-- part 2 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=0 top=225 right=277 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: theResult
-- part contents for background part 2
----- text -----
ShowDialog XCMD Type 4 Example
-- part contents for background part 3
----- text -----
ShowDialog XCMD Type 4 (continued...)
-- part contents for background part 7
----- text -----
21
-- part contents for background part 1
----- text -----
Your dialog will be displayed with the popup menu item selected that you specified in the parameter list. When you click on the hot spot the popup menu title will invert and the popup menu will appear over the hot spot.
The popup menu item number currently selected when the OK button is clicked will be returned as item 1 of "the result." The text in the editable text fields will be returned as items 2 and 3 of "the result."
If the user clicks CANCEL "the result" will be empty.